<?php

class Application_Model_Cloud extends Application_Model_DomainObject {
	protected $_id;
    protected $_item1;
    protected $_item2;
    protected $_item3;
    protected $_item4;
    protected $_item5;
    protected $_item6;
    protected $_type;
    protected $_top;
       public static function getAll($condition = array())
    {
        if(!is_array($condition)){
            return false;
        }
        return self::getDao()->queryAll($condition);
    }

 /**
     * 添加
     */
    public static function add($item1, $item2, $item3, $item4, $item5,$item6,$type,$top)
    {
        $hot = new Application_Model_Cloud();
        $hot->item1 = $item1;
        $hot->item2 = $item2;
        $hot->item3 = $item3;
        $hot->item4 = $item4;
        $hot->item5 = $item5;
        $hot->item6 = $item6;
        $hot->type = $type;
        $hot->top = $top;
        $hot->save();
        return $hot->Id;
    }

     public function edithot($item1, $item2, $item3, $item4, $item5,$item6,$type,$top) {
        $this->_item1 = $item1;
        $this->_item2 = $item2;
        $this->_item3 = $item3;
        $this->_item4 = $item4;
        $this->_item5 = $item5;
        $this->_item6 = $item6;
        $this->_top = $top;
        $this->_type = $type;
        $this->save();
    }
        

}